//import { Button } from "antd"
//import { Console } from "console";
import { useRoutes } from "react-router-dom";
import { routes } from "./router";


// import BasicLayout from "./layouts/basic-layout";
// import Console from "./pages/dashboard/console";
// import Workplace from "./pages/dashboard/workplace";
// import BasicList from "./pages/list/basic-list";
// import CardList from "./pages/list/card-list";
// import SearchList from "./pages/list/search-list";
// import Articles from "./pages/list/search-list/articles";
// import Projects from "./pages/list/search-list/projects";
// import Login from "./pages/login";


function App() {
  const element = useRoutes(routes)
  return element;



  // return (
  //   <Routes>
  //     <Route path="/dashboard" element={<BasicLayout />}>
  //       <Route path="console" element={<Console />}></Route>
  //       <Route path="workplace" element={<Workplace />}></Route>
  //     </Route>
  //     <Route path="/list" element={<BasicLayout />}>
  //       <Route index element={<Navigate to="basic-list" replace />} />
  //       <Route path="basic-list" element={<BasicList />} />
  //       <Route path="card-list" element={<CardList />} />
  //       <Route path="search-list" element={<SearchList />} >
  //         <Route path="articles" element={<Articles />} />
  //         <Route path="projects" element={<Projects />} />
  //       </Route>
  //     </Route>

  //     <Route path="/" element={<Navigate to="/dashboard/console" />} />
  //     <Route path="/login" element={<Login />} />
  //   </Routes>
  // );
}

export default App;
